package com.htgd.gardenexpo.dao;

import com.htgd.gardenexpo.entity.GeConGoalSports;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.htgd.gardenexpo.vo.MySportsRecordVO;
import com.htgd.gardenexpo.vo.MyTaskDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 目标跑 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-04-02
 */
@Mapper
public interface GeConGoalSportsMapper extends BaseMapper<GeConGoalSports> {

    double getSumMileageByOpenId(@Param("openId") String openId);

    double getSumMileageByOpenIdAndDate(@Param("openId") String openId,@Param("date") String date);

    MyTaskDetails getTaskDetails(@Param("taskId") String taskId);

    List<String> getTaskTrack(@Param("taskId")String taskId);

    double getSumDurationByOpenId(@Param("openId")String openId);

    List<MySportsRecordVO> getSportsRecord(@Param("openId")String openId);
}
